From: Colin Walters Date: Thu, 15 Jan 2015 03:01:54 +0000 (-0500) Subject: checksumutils: Support splicing stream to arbitrary checksum type X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~986 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9b6b352181e681fb5f5808d749ea1efb91f0e9cc;p=ostree.git checksumutils: Support splicing stream to arbitrary checksum type This will be used later by the metalink code; you can splice with a NULL output stream to an arbitrary GChecksum instead of just a SHA256 one. --- diff --git a/src/libotutil/ot-checksum-utils.c b/src/libotutil/ot-checksum-utils.c index b7289929..c1335fa2 100644 --- a/src/libotutil/ot-checksum-utils.c +++ b/src/libotutil/ot-checksum-utils.c @@ -92,7 +92,7 @@ ot_gio_splice_update_checksum (GOutputStream *out, } while (bytes_read > 0); } - else + else if (out != NULL) { if (g_output_stream_splice (out, in, 0, cancellable, error) < 0) goto out;